package com.von.enums;

/**
 * @author xiaosai
 * @version 1.0
 * @date 2021/7/12 14:10
 * @describe 公共返回消息提示语
 * @className
 */
public enum CommonEnum {
    //字典-组
    DICTIONARYGROUP_NAME_EMPTY(2L,"字典组name不能退为空"),
    DICTIONARYGROUP_REPETITION(3L,"字典组已存在，请换一个试试"),
    //字典-项
    GROUPID_IS_NOT_EMPTY(4L,"字典组id不能退为空"),
    CODE_IS_NOT_EMPTY(5L,"字典项code不能为空"),
    VALUE_IS_NOT_EMPTY(6L,"字典项value不能为空"),
    DICTIONARYITEM_REPETITION(7L,"字典项已存在，请换一个试试")
    ;
    private Long code;
    private String msg;

    CommonEnum(Long code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
